libfdt: Add iterator over properties
authorMaxime Ripard <[email protected]>
Tue, 5 Jul 2016 08:26:38 +0000 (10:26 +0200)
committerTom Rini <[email protected]>
Sat, 20 Aug 2016 15:35:00 +0000 (11:35 -0400)
commit67e610d9f0e9262cfa742f8a78c089b3cab9659a
treeb359e4f921e80fc8509044d52c12ea388adacb36
parent805ac6aacf8f9c3e912ebc8d9273e78d738c109d
libfdt: Add iterator over properties

Implement a macro based on fdt_first_property_offset and
fdt_next_property_offset that provides a convenience to iterate over all
the properties of a given node.

Signed-off-by: Maxime Ripard <[email protected]>
Acked-by: Simon Glass <[email protected]>
include/libfdt.h